package gdr.window.mainPage;

import gdr.dev.SuperGDR9000;
import gdr.window.*;


/**
 * Classe che gestisce la schermata principale 
 * @author Giorgio Vitale
 *
 */
public class MainWindow extends BaseWindow{
	protected MainPage mainPage;
	
	public MainWindow(SuperGDR9000 gdr){
		super(gdr, "Main Window");
		setVisible(false);
		setFocused(false);
		setNeedRefresh(false);
		
		super.setDefaultIsFocused(super.isDefaultIsFocused());
		super.setDefaultIsVisible(super.isDefaultIsVisible());
		super.setDefaultNeedRefresh(super.isDefaultNeedRefresh());
		
		mainPage = new MainPage(gdr);
		addChild(mainPage);
		
		setBackground(new BaseBackground(gdr));
		setGestisceBackground(true);
	}
}
